// 学生认证
<template>
    <info-block :editable="false">
        
        <div slot="title">学生认证</div>

        <div slot="read-box">
            <div class="real-named" v-if="realNamed">
                <div style="font-size: 20px; text-align: center">
                    你已通过学生认证
                </div>
                <div class="info-block-line">
                    <div class="read-head">姓名</div>
                    {{ user.realName }}
                </div>
                <div class="info-block-line">
                    <div class="read-head">学号</div>
                    {{ user.sid }}
                </div>
                <div class="info-block-line">
                    <div class="read-head">学校</div>
                    {{ user.school }}
                </div>
                <div class="info-block-line">
                    <div class="read-head">专业</div>
                    {{ user.major }}
                </div>
                <div class="info-block-line">
                    <div class="read-head">入学年份</div>
                    {{ user.entryYear }}
                </div>
            </div>
            
            <div class="un-real-named" v-else>
                <Upload type="drag"
                        :format="['jpg','jpeg','png']"
                        action="//jsonplaceholder.typicode.com/posts/">
                    <div style="padding: 20px 0">
                        <Icon type="ios-cloud-upload" 
                              size="52" 
                              style="color: #3399ff" />
                        <p>点击或拖动至此上传学生证照片</p>
                    </div>
                </Upload>
            </div>
        </div>
    </info-block>
</template>

<script lang='ts'>
import { Student } from "./Index";
export default Student;
</script>

<style lang='scss' scoped>
</style>